'use strict';

var ctrl = module.exports = {};
var debug = require('debug'),
  log = debug('yozh:mo:base:log'),
  error = debug('yozh:mo:base:error'),
  verbose = debug('yozh:mo:base:verbose'),
  service = require('./base.service');

ctrl.list = function *(next) {
  var list = service.list();
  this.log.info('query base list');
  this.body = list.getQuery();
};

ctrl.get = function *(next) {
  this.body = service.get(this.params.id).getQuery();
};

ctrl.add = function *(next) {
  // service.add();
};
